OBJ = $(patsubst %.cpp, %.o, $(wildcard *.cpp))
SHLIBS = ../../../redist/libcastle.so.1.0.0

all: $(OBJ)
	$(CXX) -O2 $^ -o  pkcsdemo $(SHLIBS)
$(OBJ): %.o : %.cpp
	$(CXX) -O2 -g -c $< -o $@
clean:
	rm -f pkcsdemo *.o
